<%@ Page Language="C#" MasterPageFile="~/Demo.master" AutoEventWireup="true" CodeFile="ResourcesView.aspx.cs"
    Inherits="ResourcesView" Title="Resources View (Calendar) | DayPilot Pro Demo" %>

<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server" 
        ViewType="Resources"
        DataColumnField="Column" 
        DataEndField="End" 
        DataStartField="Start" 
        DataTextField="Name"
        DataValueField="Id" 
        OnTimeRangeSelected="DayPilotCalendar1_TimeRangeSelected"
        EventResizeHandling="CallBack" 
        EventMoveHandling="JavaScript"
        EventMoveJavaScript="alert('resource: ' + e.resource());"
        OnEventResize="DayPilotCalendar1_EventResize"
        ClientObjectName="dpc1" 
        OnBeforeCellRender="DayPilotCalendar1_BeforeCellRender"
        
        CssClassPrefix="calendar_silver_"
        HourNameBackColor=""
        BorderColor="#A0A0A0"
        CellBorderColor="#A0A0A0"
        EventBorderColor="#505050"
        AllDayEventBorderColor="#a0a0a0" OnEventMove="DayPilotCalendar1_EventMove"
        
        >
        <Columns>
            <DayPilot:Column Name="Meeting Room A" Value="A" Date="" />
            <DayPilot:Column Name="Meeting Room B" Value="B" Date="" />
            <DayPilot:Column Name="Meeting Room C" Value="C" Date="" />
        </Columns>
    </DayPilot:DayPilotCalendar>
    <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/TestingData.xml">
    </asp:XmlDataSource>
</asp:Content>
